<?php

namespace app\interfaces\model;

use think\Model;

class GoodsType extends Model
{
    public function goods()
    {
        return $this->hasMany('ShopGoods', 'parenTid', 'id')->field('id,thumb_img,price,rebate_percentage')->order(['sale_number' => 'desc'])->limit('10');
    }
}
